package com.android.bookgarden.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.android.bookgarden.R;
import com.android.bookgarden.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * @author XLC
 * @description 充值
 * @time 2018-11-29
 */
public class RechargeUI extends BaseActivity implements View.OnClickListener {
    @BindView(R.id.close)
    ImageView close;
    @BindView(R.id.title_text)
    TextView titleText;
    @BindView(R.id.ritgh_icon)
    ImageView ritghIcon;
    @BindView(R.id.ritgh_text)
    TextView ritghText;
    @BindView(R.id.inputMoney)
    EditText inputMoney;
    @BindView(R.id.selectWx)
    LinearLayout selectWx;
    @BindView(R.id.selectAli)
    LinearLayout selectAli;
    @BindView(R.id.selectBank)
    LinearLayout selectBank;
    @BindView(R.id.bankNum)
    EditText bankNum;
    @BindView(R.id.bankPhone)
    EditText bankPhone;
    @BindView(R.id.SendCode)
    TextView SendCode;
    @BindView(R.id.bankSmsCode)
    EditText bankSmsCode;
    @BindView(R.id.input_bank_info_layout)
    LinearLayout inputBankInfoLayout;
    @BindView(R.id.rechargeBut)
    TextView rechargeBut;
    private boolean isBundCard;

    @Override
    public void onClick(View v) {

        switch (v.getId()){
            case R.id.close:
                finish();
                break;
            case R.id.rechargeBut:

                break;

            case R.id.SendCode:

                break;
            case R.id.selectAli:
                isBundCard = false;
                inputBankInfoLayout.setVisibility(View.GONE);
                break;

            case R.id.selectWx:
                isBundCard = false;
                inputBankInfoLayout.setVisibility(View.GONE);
                break;
            case R.id.selectBank:
                inputBankInfoLayout.setVisibility(View.VISIBLE);
                isBundCard = true;
                break;
        }
    }

    @Override
    protected int getLayoutId() {
        return R.layout.recharge_ui;
    }

    @Override
    protected void initView() {
        titleText.setText("充值");
        close.setOnClickListener(this);
        rechargeBut.setOnClickListener(this);
        SendCode.setOnClickListener(this);

    }

    @Override
    public void onRequestPermissions(String str, boolean z) {

    }

}
